<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <template id="t1">
      <div>
        <p
          :style="[
          {color:'red',background:'yellow'},
          {fontSize:'3rem',border:'solid'},
          {textAlign:'center'},
          {}
          
          ]"
        >
          hello style
        </p>
        <p :style="arrStyle">hello style</p>
      </div>
    </template>
    <script src="./vue.js"></script>
    <script>
      const vm = new Vue({
        el: "#app",
        template: "#t1",
        data: {
          arrStyle: [
            { color: "red", background: "yellow" },
            { fontSize: "3rem", border: "solid" },
            { textAlign: "center" },
            { color: "green" },
          ],
        },
      });
    </script>
  </body>
</html>
